﻿using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using WPFExcelReport.Helpers;
namespace WPFExcelReport
{
    public partial class UIQUL : SDBASE
    {
        #region ==QUALITY===========
        public static readonly DependencyProperty QUALITYProperty = DependencyProperty.Register("QUALITY",
            typeof(string), typeof(UIQUL),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnQUALITYChanged));
        public string QUALITY
        {
            get
            {
                return (string)GetValue(QUALITYProperty);
            }
            set
            {
                SetValue(QUALITYProperty, value);
            }
        }
        private static void OnQUALITYChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIQUL;
            if (src != null)
            {
                src.QUALITY = (string)e.NewValue;
            }
        }
        #endregion 

        #region ==IsFinish===========
        public static readonly DependencyProperty IsFinishProperty = DependencyProperty.Register("IsFinish",
            typeof(bool), typeof(UIQUL),
            new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnIsFinishChanged));
        public bool IsFinish
        {
            get
            {
                return (bool)GetValue(IsFinishProperty);
            }
            set
            {
                SetValue(IsFinishProperty, value);
            }
        }
        private static void OnIsFinishChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIQUL;
            if (src != null)
            {
                src.IsFinish = (bool)e.NewValue;
            }
        }
        #endregion
  
        public UIQUL()
        {
          
            
        }
    
    }
}
